
<table class="table-info projectinfo showinfo">
  <tr>
    <td>项目配置类型</td>
    <td ng-if="!config.userDefineDockerfile&amp;&amp;project.isUseCustom&amp;&amp;project.customConfig.customType=='java'">
      <h4 class="custom-type setting-title">Java专属配置</h4>专为java项目打造，分离编译和构建过程，精简项目镜像。
    </td>
    <td ng-if="!config.userDefineDockerfile&amp;&amp;!project.isUseCustom">
      <h4 class="custom-type setting-title">通用配置</h4>适合各种编程语言的项目，在页面上配置Dockerfile以及运行过程的相关信息。
    </td>
    <td ng-if="config.userDefineDockerfile">
      <h4 class="custom-type setting-title">代码内Dockerfile</h4>使用代码项目内的Dockerfile。请确保构建所用的代码分支或tag中存在可用的Dockerfile。
    </td>
  </tr>
  <tbody ng-if="!config.userDefineDockerfile">
    <tr ng-if="project.isUseCustom&amp;&amp;project.customConfig.customType=='java'">
      <td>编译镜像</td>
      <td>
        <p class="txt-prompt setting-title">{{project.customConfig.compileImage&&project.customConfig.compileImage.registryType===0?'DomeOS私有镜像库':'DomeOS官方镜像库'}}</p><span ng-cloak="ng-cloak">{{project.customConfig.compileImage&&project.customConfig.compileImage.imageName+':'+project.customConfig.compileImage.imageTag||'未设置'}}</span>
        <p class="txt-prompt setting-title">编译镜像内代码存放路径。请确认该路径下可以执行编译命令。</p><span ng-cloak="ng-cloak">{{project.customConfig.codeStoragePath||'未设置'}}</span>
        <p class="txt-prompt setting-title">编译结果在编译镜像中的存放路径</p><span ng-if="project.customConfig.createdFileStoragePath.length&lt;=1">未设置</span>
        <ul class="settting-list">
          <li ng-repeat="createdFileStoragePath in project.customConfig.createdFileStoragePath" ng-if="!$last">
            <div class="setting-group"><span ng-bind="createdFileStoragePath.name" class="info-txt info-show"></span></div>
          </li>
        </ul>
        <p class="txt-prompt setting-title">编译命令</p><span ng-cloak="ng-cloak">{{project.customConfig.compileCmd||'未设置'}}</span>
        <p class="txt-prompt setting-title">编译过程环境变量</p><span ng-if="project.customConfig.compileEnv.length&lt;=1">未设置</span>
        <ul class="settting-list">
          <li ng-repeat="compileEnv in project.customConfig.compileEnv" ng-if="!$last">
            <div class="setting-group">
              <input value="{{compileEnv.envName}}" readonly="readonly" class="ui-input ui-input-white info-txt env-name"/>
              <input value="{{compileEnv.envValue}}" readonly="readonly" class="ui-input ui-input-white info-txt env-value"/>
            </div>
          </li>
        </ul>
      </td>
    </tr>
    <tr ng-if="project.isUseCustom&amp;&amp;project.customConfig.customType=='java'">
      <td>运行镜像</td>
      <td>
        <p class="txt-prompt setting-title">{{project.customConfig.runImage&&project.customConfig.runImage.registryType===0?'DomeOS私有镜像库':'DomeOS官方镜像库'}}</p><span ng-cloak="ng-cloak">{{project.customConfig.runImage&&project.customConfig.runImage.imageName+':'+project.customConfig.runImage.imageTag||'未设置'}}</span>
        <p class="txt-prompt setting-title">编译结果在运行镜像中的存放路径</p><span ng-cloak="ng-cloak">{{project.customConfig.runFileStoragePath||'未设置'}}</span>
        <p class="txt-prompt setting-title">运行镜像的启动命令</p><span ng-cloak="ng-cloak">{{project.customConfig.startCmd||'未设置'}}</span>
        <p class="txt-prompt setting-title">项目运行镜像需要配置的环境变量。用于部署时提示运维人员配置。</p><span ng-if="config.envConfDefault.length&lt;=1">未设置</span>
        <ul class="settting-list">
          <li ng-repeat="envConfDefault in config.envConfDefault" ng-if="!$last">
            <div class="setting-group">
              <input readonly="readonly" value="{{envConfDefault.key}}" class="ui-input ui-input-white info-txt env-name"/>
              <input readonly="readonly" value="{{envConfDefault.value}}" class="ui-input ui-input-white info-txt env-name"/>
              <input readonly="readonly" value="{{envConfDefault.description||'未设置'}}" class="ui-input ui-input-white info-txt env-name"/>
            </div>
          </li>
        </ul>
      </td>
    </tr>
    <tr ng-if="!project.isUseCustom">
      <td>基础镜像</td>
      <td ng-bind="isNoSet(project.customConfig.baseImageName)"></td>
    </tr>
    <tr ng-if="!project.isUseCustom">
      <td>安装依赖命令</td>
      <td ng-bind="isNoSet(project.customConfig.installCmd)"></td>
    </tr>
    <tr ng-if="!project.isUseCustom">
      <td>代码存放路径 *</td>
      <td ng-bind="isNoSet(project.customConfig.codeStoragePath)"></td>
    </tr>
    <tr ng-if="!project.isUseCustom">
      <td>编译命令</td>
      <td ng-bind="isNoSet(project.customConfig.compileCmd)"></td>
    </tr>
    <tr>
      <td>工作目录</td>
      <td ng-bind="isNoSet(project.customConfig.workDir)"></td>
    </tr>
    <tr ng-if="!project.isUseCustom">
      <td>启动命令 *</td>
      <td ng-bind="isNoSet(project.customConfig.startCmd)"></td>
    </tr>
    <tr>
      <td>user in docker</td>
      <td ng-bind="isNoSet(project.customConfig.user)"></td>
    </tr>
    <tr ng-if="!project.isUseCustom">
      <td>编译过程环境变量</td>
      <td>
        <div class="txt-prompt setting-title">build过程的环境变量。会被写入dockerfile，在运行期间也会生效。</div><span ng-if="project.customConfig.compileEnv.length&lt;=1">未设置</span>
        <ul class="settting-list">
          <li ng-repeat="compileEnv in project.customConfig.compileEnv" ng-if="!$last">
            <div class="setting-group">
              <input readonly="readonly" value="{{compileEnv.envName}}" class="ui-input ui-input-white info-txt env-name"/>
              <input readonly="readonly" value="{{compileEnv.envValue}}" class="ui-input ui-input-white info-txt env-value"/>
            </div>
          </li>
        </ul>
      </td>
    </tr>
    <tr>
      <td>项目可见性</td>
      <td ng-switch="config.authority"><span ng-switch-when="0">仅对项目成员可见</span><span ng-switch-when="1">对所有人可见</span></td>
    </tr>
    <tr>
      <td>配置文件模板</td>
      <td>
        <div ng-non-bindable="ng-non-bindable" class="txt-prompt setting-title">配置文件模版中，用"{{.Env.PATH}}"来表示名称为"PATH"的变量。</div><span ng-if="config.confFiles.length&lt;=1">未设置</span>
        <ul class="settting-list">
          <li ng-repeat="confFile in config.confFiles" ng-if="!$last">
            <div class="setting-group">
              <input readonly="readonly" value="{{confFile.tplDir}}" class="ui-input ui-input-white info-txt env-name"/>
              <input readonly="readonly" value="{{confFile.originDir}}" class="ui-input ui-input-white info-txt env-value"/>
            </div>
          </li>
        </ul>
      </td>
    </tr>
    <tr ng-if="!project.isUseCustom">
      <td>运行过程环境变量</td>
      <td>
        <div class="txt-prompt setting-title">项目运行镜像需要配置的环境变量。用于部署时提示运维人员配置。</div><span ng-if="config.envConfDefault.length&lt;=1">未设置</span>
        <ul class="settting-list">
          <li ng-repeat="envConfDefault in config.envConfDefault" ng-if="!$last">
            <div class="setting-group">
              <input readonly="readonly" value="{{envConfDefault.key}}" class="ui-input ui-input-white info-txt env-name"/>
              <input readonly="readonly" value="{{envConfDefault.value}}" class="ui-input ui-input-white info-txt env-value"/>
              <input readonly="readonly" value="{{envConfDefault.description}}" class="ui-input ui-input-white info-txt env-description"/>
            </div>
          </li>
        </ul>
      </td>
    </tr>
  </tbody>
  <tbody ng-if="config.userDefineDockerfile">
    <tr>
      <td>构建目录</td>
      <td ng-bind="isNoSet(config.dockerfileInfo.buildPath)"></td>
    </tr>
    <tr>
      <td>Dockerfile路径</td>
      <td>
        <p class="txt-prompt setting-title">镜像内的Dockerfile存放路径。需要具体到Dockerfile文件名，Dockerfile文件可随意命名。推荐在构建目录下存放Dockerfile。</p><span ng-bind="isNoSet(config.dockerfileInfo.dockerfilePath)"></span>
      </td>
    </tr>
    <tr>
      <td>项目可见性</td>
      <td ng-switch="config.authority"><span ng-switch-when="0">仅对项目成员可见</span><span ng-switch-when="1">对所有人可见</span></td>
    </tr>
    <tr>
      <td>运行过程环境变量</td>
      <td>
        <div class="txt-prompt setting-title">项目镜像运行过程需要的环境变量。用于部署时提示运维人员配置。</div><span ng-if="config.envConfDefault[0].key===''">未设置</span>
        <ul ng-if="config.envConfDefault[0].key!==''" class="settting-list">
          <li ng-repeat="envConfDefault in config.envConfDefault" ng-if="!$last">
            <div class="setting-group">
              <input readonly="readonly" value="{{envConfDefault.key}}" class="ui-input ui-input-white info-txt env-name"/>
              <input readonly="readonly" value="{{envConfDefault.value}}" class="ui-input ui-input-white info-txt env-value"/>
              <input readonly="readonly" value="{{envConfDefault.description}}" class="ui-input ui-input-white info-txt env-description"/>
            </div>
          </li>
        </ul>
      </td>
    </tr>
  </tbody>
</table>